home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Library & Plugs / Plug-Ins Dev 68K / MAD.h next >
Encoding:
C/C++ Source or Header  |  1993-12-06  |  1.0 KB  |  34 lines  |  [TEXT/KAHL]

  1. struct Command {
  2.     Byte    InstrumentNo;        // Instrument no
  3.     Byte     AmigaPeriod;        // Note, see table
  4.     Byte     EffectCmd;            // Effect cmd
  5.     Byte     EffectArg;            // Effect arg
  6. };
  7.  
  8. struct Pattern {                // Pattern = 64 notes to play
  9.     struct Command Commands[ 64];
  10. };
  11.  
  12. struct FileInstrData {
  13.     char     Filename[ 32];        // Instrument's filename
  14.     long     insSize;            // Sample length
  15.     Byte     fineTune;
  16.     Byte     volume;            // Base volume
  17.     long    freq;                // Base frequence, simple, double, quadruple
  18.     Byte    amplitude;            // 8 or 16 bits
  19.     long    loopStart;            // LoopStart
  20.     long    loopLenght;            // LoopLength
  21. };
  22.  
  23. struct SoundTrackSpec {
  24.     long    MADIdentification;        // Mad Identification : 'MADF' 
  25.     char     NameSignature[ 32];    // Music's name
  26.     struct     FileInstrData fid[ 64];    // 64 instruments descriptor
  27.     Byte    PatMax;
  28.     Byte     numPointers;            // Patterns number
  29.     Byte    oPointers[ 128];        // Patterns list
  30.     Byte    Tracks;                    // Tracks number
  31.     struct    Pattern patterns[];        // Pattern data
  32.     Ptr        Sample;                // Sample data of 64 instruments
  33. };
  34. typedef struct SoundTrackSpec SoundTrackSpec;